import 'dart:convert';

void main()
{
    Map<String, dynamic> my_map = {
        "name":"Dart",
        "type":"map",
    };
    print(my_map);

    String my_json = jsonEncode(my_map);
    print(my_json);

    my_json = '{"name":"JSON","type":"string"}';
    print(my_json);

    my_map = jsonDecode(my_json);
    print(my_map);

}